<extend name="./Application/Common/View/block/mobile_base.php" />
<block name="title"></block>
<block name="header">
    <include file="./Template/Mobilerecord/block/mui_header.php" />
    <include file="./Template/Home/Mobilerecord/html5_header.php" />

</block>
<block name="body">
    <body>
        <header class="mui-bar mui-bar-nav">
            <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
            <h1 class="mui-title">打卡</h1>
        </header>
        <div class="mui-content">
            <form id='login-form' class="mui-input-group" method="post" action="__URL__/dump">
                <div class="mui-input-row mui-radio">
                    <label>上班</label>
                    <input name="status" value="1" type="radio">
                </div>
                <div class="mui-input-row mui-radio">
                    <label>下班</label>
                    <input name="status" value="0" type="radio">
                </div>
                <div class="mui-input-row">
                    <button type="button" class="mui-btn mui-btn-warning" onclick="appendByCamera()">拍照</button>
                </div>
                <div class="mui-input-row">
                    <button type="submit" class="mui-btn mui-btn-primary">提交</button>
                </div>
                <input type="hidden" name="photo" id="photo_minx"/>
                <input type="hidden" name="gps" id="gps_minx"/>

            </form>
        </div>
    </body>
</block>
<block name="footExtendJs">
    <script src="__PUBLIC__/mobile/html5/function/upload_photo.js"></script>
    <script>
        (function($, doc) {
            $.init({
                statusBarBackground: '#f7f7f7'
            });
            $.plusReady(function() {



            });
        }(mui, document));
    </script>
    <script type="text/javascript">
        var watchId;
        function geoInf(position) {
            var str = "";
            str += position.addresses + ","; //获取地址信息
            var codns = position.coords; //获取地理坐标信息；
            var lat = codns.latitude; //获取到当前位置的纬度；
            str += lat + ',';
            var longt = codns.longitude; //获取到当前位置的经度
            str += longt;
            mui('#gps_minx')[0].value = str;
        }
    </script>



</block>
